package com.wxsong.authplatform.authweb.service.role;

import com.wxsong.authplatform.authweb.model.authority.Authority;
import com.wxsong.authplatform.authweb.model.role.Role;
import com.wxsong.authplatform.authweb.model.users.Users;

import java.lang.reflect.InvocationTargetException;
import java.sql.Timestamp;
import java.util.List;
import java.util.Map;

public interface RoleService {

    Role getByUserName(String name);

    List<Role> list(int from, int pageSize, Map<String, Object> paramMap);

    Long count(Map<String, Object> paramMap);

    int add(Role role);

    int updateInfo(Long id, String name);

    int delete(Long[] ids);

    Role getById(Long id);

    List<Authority> hasAuths(Long[] ids);

    List<Authority> noAuths(Long[] ids);

    int modifyAuth(String ids, Long roleId);

}
